//
//  ZItem.m
//  Zlottery
//
//  Created by HuaYingJiTuan on 16/1/11.
//  Copyright © 2016年 张庆庆. All rights reserved.
//

#import "ZItem.h"

@implementation ZItem
+ (instancetype)itemWithTitle:(NSString *)title{
    ZItem *item = [[self alloc] init];
    item.title = title;
    return item;
}
+ (instancetype)itemWithTitle:(NSString *)title subTitle:(NSString *)subTitle{
    ZItem *item = [self itemWithTitle:title];
    item.subTitle = subTitle;
    return item;
}

+ (instancetype)itemWithTitle:(NSString *)title icon:(NSString *)icon{
    ZItem *item = [self itemWithTitle:title];
    item.icon = icon;
    return item;
}
@end
